#ifndef __CGAMESCENE_H__
#define __CGAMESCENE_H__

#include "cocos2d.h"
#include "CLoginView.h"
#include "CGameView.h"

USING_NS_CC;

class CGameScene : public cocos2d::CCScene
{
public:
	~CGameScene();

	static CGameScene& getInstance();

	virtual bool init();

	CLoginView* getLoginView();
	CGameView* getGameView();
	void changeView(CCLayer* view);

private:
	CGameScene();

	static CGameScene* instance;
	CLoginView* loginView;
	CGameView* gameView;
	CCLayer* currentView;
};

#endif